package com.ngc.mall.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ngc.mall.common.configure.mybatisPlus.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * 积分任务
 * @author: chenxiaolin
 * @date 2023/9/12 12:12
**/
@Data
@Builder
@TableName("user_integral_task")
@AllArgsConstructor
@NoArgsConstructor
public class UserIntegralTaskDomain extends BaseDomain {

    private String taskTitle;

    private String taskTag;

    private String description;

    private String icon;

    private Integer sort;

    /**
     * 跳转类型 1小程序内部页面跳转 2，跳转指定链接
     */
    private Integer jumpType;

    private String jumpSource;

    /**
     * 任务类型 1 普通任务 2 福利任务
     */
    private Integer taskType;

    @TableLogic
    private Boolean deleted;

    /**
     * 获取积分
     */
    private Integer integral;

    private Boolean isEnabled;

    @TableField(exist =false)
    private Integer completeFlag;


    public void setCompleteFlag(int status) {
        this.completeFlag=status;
    }
}
